package com.chang.annotation.resource;

import com.chang.annotation.resource.service.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTestController2 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("resourceBean.xml");
        // UserController bean = context.getBean(UserController.class);
        UserServiceImpl bean = context.getBean(UserServiceImpl.class);
        bean.add();
    }
}
